#ifndef DATABASE_INTERFACE_H
#define DATABASE_INTERFACE_H

class DatabaseInterface : public Optra::ZoneInterface
{
    Q_OBJECT

public:
    DatabaseInterface(QObject *parent = 0);
    ~DatabaseInterface(void);

protected:
    bool initialize();
    Optra::ZoneInfo* zoneInfo();
    void launch();
    void unload();

    bool configure(bool read);

    void functionx(QString name);

private:    
    QVariant save()const;
    void setSave(const QVariant& val);

    void setRegisterScope(const QVariant& val);


    QList<QVariant> values()const;    
    void setValues(const QList<QVariant>& val);

    void setRegisterDatabase(const QString& dbname);

    QList<QVariant> values_;
    QMap<QString, QVariant> save_;

    Optra::ZoneInfo* info_;
    

};

#endif /* DATABASE_INTERFACE_H */

